<?php
/**
 * Created by PhpStorm.
 * User: 96572
 * Date: 2017/4/28
 * Time: 21:29
 */
use yii\bootstrap\BootstrapAsset;
use yii\bootstrap\BootstrapPluginAsset;
use yii\helpers\Html;
BootstrapAsset::register($this);
BootstrapPluginAsset::register($this);
?>
<?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="<?= Yii::$app->charset ?>"/>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($title) ?></title>
        <?php $this->head() ?>
    </head>
    <body>
    <?php $this->beginBody() ?>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h1><?=$title?></h1>
                <hr>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <h3>失败原因:</h3>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12 alert alert-danger">
                <h5><?=$message?></h5>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <?php foreach ($links as $link){ ?>
                    <a href="<?=$link['url']?>"><?=$link['name']?></a>
                <?php } ?>
            </div>
        </div>
    </div>
    <?php $this->endBody() ?>
    </body>
    </html>
<?php $this->endPage() ?>